﻿using System;
using System.Data;

namespace WpfApplication5.Models
{
    public class FuncationInfo
    {
        public FuncationInfo() { }
        public FuncationInfo(DataRow row)
        {
            this.Code = row["code"].ToString();
            this.Range = Convert.ToInt32(row["range"]);
            this.NameEN = row["name_en"].ToString();
            this.NameCN = row["name_cn"].ToString();
            this.DescEN = row["desc_en"].ToString();
            this.DescCN = row["desc_cn"].ToString();
            this.Sample = row["sample"].ToString();
            this.CategoryId = Convert.ToInt32(row["cat_id"]);
            this.ParameterId = row["paramid"].ToString();
        }

        #region Property
        public string Code { get; set; }
        public int Range { get; set; }
        public string NameEN { get; set; }
        public string NameCN { get; set; }
        public string DescEN { get; set; }
        public string DescCN { get; set; }
        public string Sample { get; set; }
        public int CategoryId { get; set; }
        public string ParameterId { get; set; }
        #endregion

    }
}
